package artid.com.arttogoa.parser;

import java.io.Serializable;

import org.json.JSONObject;

/**
 * 
*    
* 项目名称：ArtworkArtA   
* 类名称   ：NoiceListParser   
* 类描述   ：艺术家通知列表实体类+解析   
* 创建人   ：耿卫斌   
* 创建时间：2016-5-20 下午2:20:37   
*
 */
public class NoiceListParser extends AppItem implements Serializable {
	private static final long serialVersionUID = 1L;
	private String messid;
	private String title;
	private String creattime;
	private String read;
	private String messurl;//详情的WebView地址
	private String type;//消息类型 1：系统消息 2：订单消息
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		messid = obj.optString("messid");
		title = obj.optString("title");
		creattime = obj.optString("creattime");
		read = obj.optString("read");
		messurl = obj.optString("messurl");
		type = obj.optString("type");
	}
	public String getMessid() {
		return messid;
	}
	public void setMessid(String messid) {
		this.messid = messid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getCreattime() {
		return creattime;
	}
	public void setCreattime(String creattime) {
		this.creattime = creattime;
	}
	public String getMessurl() {
		return messurl;
	}
	public void setMessurl(String messurl) {
		this.messurl = messurl;
	}
	public String getRead() {
		return read;
	}
	public void setRead(String read) {
		this.read = read;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public NoiceListParser() {
		super();
	}
	public NoiceListParser(String messid, String title, String creattime,
			String read, String messurl, String type) {
		super();
		this.messid = messid;
		this.title = title;
		this.creattime = creattime;
		this.read = read;
		this.messurl = messurl;
		this.type = type;
	}
	@Override
	public String toString() {
		return "NoiceListParser [messid=" + messid + ", title=" + title
				+ ", creattime=" + creattime + ", read=" + read + ", messurl="
				+ messurl + ", type=" + type + "]";
	}
}
